package com.yan.demo;

import java.util.Scanner;

public class Test5 {
    public static void main(String[] args) {
        // 定义常量3.14
        // 定义半径变量r
        int radius;
        // 定义周长，面积变量
        double c,s;
        Scanner scanner = new Scanner(System.in);
        radius = scanner.nextInt();
        c = 2 * Math.PI * radius;
        System.out.println("周长 = " + c);
        s = Math.PI * radius * radius;
        System.out.println("面积 = " + s);
    }
}
